import 'dart:convert';

import 'package:mtf/app/data/KLineBeanEntity.dart';

KLineBeanEntity kLineBeanEntityFromJson(String str) => KLineBeanEntity.fromJson(json.decode(str));

String kLineBeanEntityToJson(KLineBeanEntity data) => json.encode(data.toJson());

class KInfoEntity {
  List<KLineBeanEntity> info;

  KInfoEntity({
    required this.info,
  });

  factory KInfoEntity.fromJson(Map<String, dynamic> json) => KInfoEntity(
    info: List<KLineBeanEntity>.from(json["info"].map((x) => KLineBeanEntity.fromJson(x))),
  );

  Map<String, dynamic> toJson() => {
    "info": List<dynamic>.from(info.map((x) => x.toJson())),
  };
}
